package com.zyw.module.console.user.dao;

import com.zyw.module.console.user.po.User;
import com.zyw.orm.mybatis.MybatisBaseDao;
import com.zyw.orm.mybatis.annotation.MyBatisDao;
import com.zyw.orm.support.page.Page;
import java.util.List;

@MyBatisDao
public interface UserDao extends MybatisBaseDao<User, Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> findByPage(Page<User> page);

    List<User> findByUsername(String username);

    User findByWxUserid(String wxUserId);

    User findByUserName(String username);

    String getPassword(String username);

    List<User> findByPhone(String phone);
}